<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
  <div id="productList" class="container">
   <div class="pmu-content-createTestPage margin-bottom60" style="height:200px">
   		<c:if test="${fn:length(products) lt 1}">
   		<h1 style="font-size:300%" align="center"><b>No Items to Show</b></h1>
   		</c:if>
		 <c:forEach items="${products}" var="product">
		 <h1 class="ultra-light">No more items to be displayed...</h1>
		
			<div class="ex1V_">
				 <script>
				   $(document).ready(function(){
					   var val = "/BitsBazaar/getPhoto/" +${product.mainImgId} + ".html";
					   alert(val);
					   document.getElementById(${product.id}).childNodes[0].src = val;
				   });
				
				 </script>
				 
				 
			  		 <a id="${product.id}"><img  src="" height="200" width="200"> &nbsp;&nbsp;${product.name} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PRICE(Rs):<b>${product.price }</font></b>

			
			<!-- <div class="control-group">
							<div class="controls"> -->
			  	
			  		 
			  		 	<input type="submit" value="ACCEPT" class="btn btn-success"
							 onclick="return submitValidation(${product.id},'accept.html')">
					
						
						<input type="submit" value="DECLINE" class="btn btn-success"
							 onclick="return submitValidation(${product.id},'decline.html')">
				</a>
							<!-- </div>
							</div> -->
							
						<!-- <input type="submit" value="DECLINE" class="btn btn-success"
							style="width: 150px" onclick="return loadView(this, 'buyPage.html');"/> -->
							 
        		
			</div>
 		</c:forEach>`
 		
   </div>
  </div>